Skip to content

Conversation

alwx
Copy link
Contributor

@alwx alwx commented Sep 30, 2025

📢 Type of change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring

Fixes #5115

📜 Description

Updates the init method to accept propagateTraceparent header and passes it to the JavaScript SDK client.
The code also includes tests — those only check if propagateTraceparent is actually being passed to the JS SDK client. There is no need to write extra tests because propagateTraceparent is already covered by tests in the JS SDK (here: https://github.com/getsentry/sentry-javascript/blob/develop/packages/core/test/lib/utils/traceData.test.ts)

📝 Checklist

  • I added tests to verify changes
  • No new PII added or SDK only sends newly added PII if sendDefaultPII is enabled
  • I updated the docs if needed.
  • I updated the wizard if needed.
  • All tests passing
  • No breaking changes

🔮 Next steps

@alwx alwx self-assigned this Sep 30, 2025
Copy link
Contributor

github-actions bot commented Sep 30, 2025

Android (legacy) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 425.96 ms 430.50 ms 4.54 ms
Size 17.75 MiB 19.70 MiB 1.95 MiB

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
49ef936+dirty 405.96 ms 417.22 ms 11.26 ms
af9331b 449.77 ms 479.20 ms 29.43 ms
8a4ce6f 422.88 ms 408.33 ms -14.55 ms
3bd3f0d+dirty 447.21 ms 472.31 ms 25.10 ms
a0b15d6 423.06 ms 437.77 ms 14.71 ms
2b89ce9 413.69 ms 442.58 ms 28.89 ms
c7f264b 434.98 ms 452.96 ms 17.98 ms
8d89cc9+dirty 537.83 ms 536.02 ms -1.81 ms
9f211e3 451.50 ms 500.00 ms 48.50 ms
6fee48d+dirty 407.42 ms 437.71 ms 30.29 ms

App size

Revision Plain With Sentry Diff
49ef936+dirty 17.75 MiB 19.69 MiB 1.94 MiB
af9331b 17.75 MiB 19.68 MiB 1.94 MiB
8a4ce6f 17.75 MiB 19.68 MiB 1.94 MiB
3bd3f0d+dirty 17.75 MiB 19.70 MiB 1.95 MiB
a0b15d6 17.75 MiB 20.15 MiB 2.41 MiB
2b89ce9 17.75 MiB 19.68 MiB 1.94 MiB
c7f264b 17.75 MiB 19.68 MiB 1.94 MiB
8d89cc9+dirty 17.75 MiB 19.68 MiB 1.94 MiB
9f211e3 17.75 MiB 19.68 MiB 1.94 MiB
6fee48d+dirty 17.75 MiB 19.68 MiB 1.94 MiB

Previous results on branch: alwx/improvement/traceparent-support

Startup times

Revision Plain With Sentry Diff
33d30bb+dirty 418.02 ms 419.92 ms 1.90 ms

App size

Revision Plain With Sentry Diff
33d30bb+dirty 17.75 MiB 19.70 MiB 1.95 MiB

Copy link
Contributor

github-actions bot commented Sep 30, 2025

Android (new) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 344.52 ms 386.40 ms 41.88 ms
Size 7.15 MiB 8.43 MiB 1.28 MiB

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
49ef936+dirty 333.72 ms 387.51 ms 53.79 ms
5526494+dirty 380.79 ms 432.70 ms 51.91 ms
3bd3f0d+dirty 334.38 ms 402.19 ms 67.81 ms
1853710+dirty 360.67 ms 396.28 ms 35.61 ms
8d89cc9+dirty 357.69 ms 415.79 ms 58.10 ms
000da7a+dirty 347.89 ms 381.98 ms 34.09 ms
6fee48d+dirty 370.23 ms 427.86 ms 57.63 ms
c4e097a+dirty 382.43 ms 443.77 ms 61.34 ms
c9e95bd+dirty 339.32 ms 401.24 ms 61.92 ms
6479fd5+dirty 393.06 ms 434.04 ms 40.98 ms

App size

Revision Plain With Sentry Diff
49ef936+dirty 7.15 MiB 8.42 MiB 1.26 MiB
5526494+dirty 7.15 MiB 8.41 MiB 1.26 MiB
3bd3f0d+dirty 7.15 MiB 8.43 MiB 1.28 MiB
1853710+dirty 7.15 MiB 8.41 MiB 1.26 MiB
8d89cc9+dirty 7.15 MiB 8.41 MiB 1.26 MiB
000da7a+dirty 7.15 MiB 8.41 MiB 1.26 MiB
6fee48d+dirty 7.15 MiB 8.41 MiB 1.26 MiB
c4e097a+dirty 7.15 MiB 8.41 MiB 1.26 MiB
c9e95bd+dirty 7.15 MiB 8.41 MiB 1.26 MiB
6479fd5+dirty 7.15 MiB 8.41 MiB 1.26 MiB

Previous results on branch: alwx/improvement/traceparent-support

Startup times

Revision Plain With Sentry Diff
33d30bb+dirty 335.16 ms 367.08 ms 31.92 ms

App size

Revision Plain With Sentry Diff
33d30bb+dirty 7.15 MiB 8.43 MiB 1.28 MiB

Copy link
Contributor

github-actions bot commented Sep 30, 2025

iOS (new) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 1217.76 ms 1233.48 ms 15.72 ms
Size 3.19 MiB 4.56 MiB 1.37 MiB

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
000da7a+dirty 1204.50 ms 1218.94 ms 14.44 ms
c08359e+dirty 1200.59 ms 1211.81 ms 11.22 ms
5ee3314+dirty 1234.25 ms 1235.44 ms 1.19 ms
49ef936+dirty 1221.27 ms 1221.60 ms 0.34 ms
23080e5+dirty 1221.39 ms 1222.08 ms 0.70 ms
8a4ce6f+dirty 1232.80 ms 1223.80 ms -9.00 ms
77061ed+dirty 1210.77 ms 1218.45 ms 7.68 ms
eb07ba3+dirty 1214.49 ms 1221.59 ms 7.10 ms
3099014+dirty 1234.04 ms 1243.22 ms 9.18 ms
90afdd3+dirty 1216.17 ms 1225.55 ms 9.38 ms

App size

Revision Plain With Sentry Diff
000da7a+dirty 3.19 MiB 4.48 MiB 1.29 MiB
c08359e+dirty 3.19 MiB 4.38 MiB 1.19 MiB
5ee3314+dirty 3.19 MiB 4.55 MiB 1.37 MiB
49ef936+dirty 3.19 MiB 4.54 MiB 1.36 MiB
23080e5+dirty 3.19 MiB 4.48 MiB 1.29 MiB
8a4ce6f+dirty 3.19 MiB 4.53 MiB 1.34 MiB
77061ed+dirty 3.19 MiB 4.54 MiB 1.36 MiB
eb07ba3+dirty 3.19 MiB 4.38 MiB 1.19 MiB
3099014+dirty 3.19 MiB 4.55 MiB 1.36 MiB
90afdd3+dirty 3.19 MiB 4.55 MiB 1.37 MiB

Previous results on branch: alwx/improvement/traceparent-support

Startup times

Revision Plain With Sentry Diff
33d30bb+dirty 1231.20 ms 1238.82 ms 7.61 ms

App size

Revision Plain With Sentry Diff
33d30bb+dirty 3.19 MiB 4.55 MiB 1.37 MiB

@alwx alwx force-pushed the alwx/improvement/traceparent-support branch from 17e753a to befae1e Compare October 9, 2025 12:20
@alwx alwx changed the title WIP: Add support for propagateTraceparent Add support for propagateTraceparent Oct 9, 2025
@alwx alwx marked this pull request as ready for review October 9, 2025 12:25
Copy link
Contributor

github-actions bot commented Oct 9, 2025

iOS (legacy) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 1217.66 ms 1225.25 ms 7.59 ms
Size 2.63 MiB 3.99 MiB 1.36 MiB

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
000da7a+dirty 1214.31 ms 1221.91 ms 7.61 ms
c08359e+dirty 1235.25 ms 1233.96 ms -1.29 ms
5ee3314+dirty 1215.18 ms 1207.64 ms -7.54 ms
49ef936+dirty 1228.42 ms 1217.09 ms -11.33 ms
23080e5+dirty 1216.02 ms 1224.94 ms 8.91 ms
8a4ce6f+dirty 1221.31 ms 1219.84 ms -1.47 ms
77061ed+dirty 1233.16 ms 1234.88 ms 1.71 ms
eb07ba3+dirty 1222.46 ms 1220.37 ms -2.08 ms
3099014+dirty 1226.75 ms 1236.56 ms 9.81 ms
90afdd3+dirty 1233.90 ms 1240.90 ms 7.00 ms

App size

Revision Plain With Sentry Diff
000da7a+dirty 2.63 MiB 3.91 MiB 1.28 MiB
c08359e+dirty 2.63 MiB 3.81 MiB 1.18 MiB
5ee3314+dirty 2.63 MiB 3.99 MiB 1.35 MiB
49ef936+dirty 2.63 MiB 3.98 MiB 1.34 MiB
23080e5+dirty 2.63 MiB 3.91 MiB 1.28 MiB
8a4ce6f+dirty 2.63 MiB 3.96 MiB 1.33 MiB
77061ed+dirty 2.63 MiB 3.98 MiB 1.34 MiB
eb07ba3+dirty 2.63 MiB 3.81 MiB 1.18 MiB
3099014+dirty 2.63 MiB 3.98 MiB 1.35 MiB
90afdd3+dirty 2.63 MiB 3.99 MiB 1.35 MiB

Previous results on branch: alwx/improvement/traceparent-support

Startup times

Revision Plain With Sentry Diff
33d30bb+dirty 1224.41 ms 1223.17 ms -1.25 ms

App size

Revision Plain With Sentry Diff
33d30bb+dirty 2.63 MiB 3.99 MiB 1.35 MiB

@alwx alwx changed the title Add support for propagateTraceparent WIP: Add support for propagateTraceparent Oct 9, 2025
@alwx alwx changed the title WIP: Add support for propagateTraceparent Add support for propagateTraceparent Oct 9, 2025
@lucas-zimerman
Copy link
Collaborator

Could you check the test files? there is a test where you expect propagateTraceparent to be true but the result was false.

@alwx alwx force-pushed the alwx/improvement/traceparent-support branch from 973a166 to 649fbce Compare October 13, 2025 09:19
Copy link
Contributor

Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Generated by 🚫 dangerJS against 649fbce

@alwx
Copy link
Contributor Author

alwx commented Oct 13, 2025

@lucas-zimerman sorry, now it's ready


### Features

- Adds support for `propagateTraceparent` ([#5277](https://github.com/getsentry/sentry-react-native/pull/5227))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Though obvious could add a short example in the changelog similar to other features (example)

Copy link
Contributor

@antonis antonis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🎸

@alwx alwx merged commit d088905 into main Oct 13, 2025
109 of 111 checks passed
@alwx alwx deleted the alwx/improvement/traceparent-support branch October 13, 2025 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add traceparent support to sentry-react-native

3 participants